<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <!--标准mui.css-->
    <link rel="stylesheet" href="../static/weixinKp/css/mui.min.css">
    <!--App自定义的css-->
    <link rel="stylesheet" type="text/css" href="../static/weixinKp/css/app.css" />
    <title>诚聘英才</title>
</head>

<body>
    <div class="wrap">
    </div>
</body>
<script src="../static/weixinKp/js/mui.min.js"></script>
<script src="../static/weixinKp/js/path.js"></script>
<script src="../static/weixinKp/js/jquery-3.2.1.min.js" charset="utf-8"></script>
<script>
    $.ajax({
        url: path + '/app/company/jobs/list',
        dataType: 'json',
        type: 'post',
        xhrFields: {
            withCredentials: true
        },
        success: (data) => {
            console.log(data);
            var html = '';
            for (var i = 0; i < data.data.length; i++) {
                html += '<div class="invoice">';
                html += '<img src="./images/ic_11.png" alt="" class="invoimg"><input type="hidden" value="' + data.data[i].id + '"/> <span>' + data.data[i].title + '</span>';
                html += '<img src="./images/right.png" alt="" class="icon-more">';
                html += '</div>';
            }
            $(".wrap").append(html);
        },
        error: (err) => {
            mui.alert(err.message);
        }
    })
    $(document).on('touchstart', '.invoice', function() {
        var id = $(this).find('input').val();
        var title = $(this).find('span').text();
        window.location.href = "./TalentedDetail.html?id=" + id + '&title=' + title;
    })
</script>

</html>
